<script type="text/javascript">
// 자바스크립트에서 사용하는 전역변수 선언
var g5_path      = "<?=$g5['path']?>";
var g5_bbs       = "<?=$g5['bbs']?>";
var g5_bbs_img   = "<?=$g5['bbs_img']?>";
var g5_url       = "<?=$g5['url']?>";
var g5_is_member = "<?=$is_member?>";
var g5_is_admin  = "<?=$is_admin?>";
var g5_bo_table  = "<?=isset($bo_table)?$bo_table:'';?>";
var g5_sca       = "<?=isset($sca)?$sca:'';?>";
var g5_charset   = "<?=$g5['charset']?>";
var g5_cookie_domain = "<?=$g5['cookie_domain']?>";
var g5_is_gecko  = navigator.userAgent.toLowerCase().indexOf("gecko") != -1;
var g5_is_ie     = navigator.userAgent.toLowerCase().indexOf("msie") != -1;
<? if ($is_admin) { echo "var g5_admin = '{$g5['admin']}';"; } ?>
</script>